package cn.shyouchi.wuguanjia.android.ui.event.checkpoint;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * Created by Eenie on 2016/11/17 at 16:24
 * Email: 472279981@qq.com
 * Des:
 */

public class CheckPointEntity {


    /**
     * resultCode : 0
     * resultMessage : [{"id":1,"inspectionname":"大堂","inspectionmethod":1,"inspectioncontent":"啊疼，","image":[]},{"id":2,"inspectionname":"嗯啦，","inspectionmethod":1,"inspectioncontent":"太累了，","image":[{"image":"/images/project/20161117/20161117172345YC1525085351.jpg"},{"image":"/images/project/20161117/20161117172345YC1458464576.jpg"},{"image":"/images/project/20161117/20161117172345YC1458242706.jpg"}]}]
     */

    private int resultCode;
    private List<ResultMessageBean> resultMessage;

    public int getResultCode() {
        return resultCode;
    }

    public void setResultCode(int resultCode) {
        this.resultCode = resultCode;
    }

    public List<ResultMessageBean> getResultMessage() {
        return resultMessage;
    }

    public void setResultMessage(List<ResultMessageBean> resultMessage) {
        this.resultMessage = resultMessage;
    }

    public static class ResultMessageBean implements Parcelable {
        /**
         * id : 1
         * inspectionname : 大堂
         * inspectionmethod : 1
         * inspectioncontent : 啊疼，
         * image : []
         */

        private int id;
        private String inspectionname;
        private int inspectionmethod;
        private String inspectioncontent;
        private List<String> image;

        private boolean isCheck;
        private String time;

        public int getId() {
            return id;
        }

        public void setId(int id) {
            this.id = id;
        }

        public String getInspectionname() {
            return inspectionname;
        }

        public void setInspectionname(String inspectionname) {
            this.inspectionname = inspectionname;
        }

        public int getInspectionmethod() {
            return inspectionmethod;
        }

        public void setInspectionmethod(int inspectionmethod) {
            this.inspectionmethod = inspectionmethod;
        }

        public String getInspectioncontent() {
            return inspectioncontent;
        }

        public void setInspectioncontent(String inspectioncontent) {
            this.inspectioncontent = inspectioncontent;
        }

        public List<String> getImage() {
            return image;
        }

        public void setImage(List<String> image) {
            this.image = image;
        }

        public boolean isCheck() {
            return isCheck;
        }

        public void setCheck(boolean check) {
            isCheck = check;
        }

        public String getTime() {
            return time;
        }

        public void setTime(String time) {
            this.time = time;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(this.id);
            dest.writeString(this.inspectionname);
            dest.writeInt(this.inspectionmethod);
            dest.writeString(this.inspectioncontent);
            dest.writeStringList(this.image);
            dest.writeByte(this.isCheck ? (byte) 1 : (byte) 0);
            dest.writeString(this.time);
        }

        public ResultMessageBean() {
        }

        protected ResultMessageBean(Parcel in) {
            this.id = in.readInt();
            this.inspectionname = in.readString();
            this.inspectionmethod = in.readInt();
            this.inspectioncontent = in.readString();
            this.image = in.createStringArrayList();
            this.isCheck = in.readByte() != 0;
            this.time = in.readString();
        }

        public static final Parcelable.Creator<ResultMessageBean> CREATOR = new Parcelable.Creator<ResultMessageBean>() {
            @Override
            public ResultMessageBean createFromParcel(Parcel source) {
                return new ResultMessageBean(source);
            }

            @Override
            public ResultMessageBean[] newArray(int size) {
                return new ResultMessageBean[size];
            }
        };
    }
}
